package com.guang.springbootmybatisbatchoperate.controller;

import com.guang.springbootmybatisbatchoperate.servcie.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liguang
 * @date 2022/6/14 14:52
 */
@RestController
@RequestMapping(path = "/user")
public class UserController {

    @Autowired
    private UserService userService;

    @GetMapping(path = "batchInsert")
    public String batchInsert(){
        userService.batchInsert();
        return "batchInsert  success";
    }

}
